// let base = 'http://api.ahjtest.top/'
// let base1 = 'http://api.ahjdev.top/'
// let base2 = 'http://api.anhuanjia.com/'
// import Vue from 'vue';
// import axios from 'axios';
let base = '', // 文件上传地址
    bases = ''; // 公示跳转地址

switch (process.env.TYPE) {
    case 'dev':
        base = 'https://api.ahjdev.top/'
        bases = 'http://gs.ahjdev.top/'
        break;
    case 'test':
        base = 'https://api.ahjtest.top/'
        bases = 'http://gs.ahjtest.top/'
        break;
    case 'prod':
        base = 'https://api.anhuanjia.com/'
        bases = 'http://eia.gk.anhuanjia.com/'
        break;
    default:
        base = 'https://api.ahjdev.top/'
        bases = 'http://gs.ahjdev.top/'
}


export default {
    uploads() {
        return base + 'fileUpload/uploadAudit';
    },
    uploads1() {
        return base + 'fileUpload/saveUrlAs2';
    },
    uploads2() {
        return base;
    },
    uploads3() {
        return bases;
    }
}